<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>指尖金融</title>
		<link href="../../../css/common.css" type="text/css" rel="stylesheet">
		<link href="../../../css/base.css" type="text/css" rel="stylesheet">
		<link href="clientManage.css" type="text/css" rel="stylesheet">
		<link href="../../../res/png/icon.png" rel="shortcut icon"/>
		<link rel="stylesheet" type="text/css" href="../../../js/My97DatePicker/skin/WdatePicker.css" />
		<link rel="stylesheet" type="text/css" href="./clientAuthentication.css" />
	</head>

	<body>
		<div class="wrapper">
			<!-- 顶部菜单栏 -->
			<div id="header" class="header">
			</div>
			<div class="main" id="main">
				<!-- 左侧菜单栏 -->
				<div id="leftMenu" class="left"></div>
				<div class="pages">
					<div class="table-section none page" id="searchEnterprise">
						<p class="table-head">
							<label class="table-title">当前位置:企业用户管理</label>
						</p>
						<p class="table-search">
							<label for="" class="registerTime">注册时间：</label>
							<input class="field-input Wdate FromTime" type="text" id="publishFromTime" name="createDateTimeBegin" placeholder="请输入时间" onFocus="WdatePicker({})" />
							<input class="field-input Wdate ToTime"   type="text" id="publishToTime"   name="createDateTimeEnd"  placeholder="请输入时间"  onFocus="WdatePicker({minDate:$('#publishFromTime').val()})"/>
							<label class="phoneNum">手机号码：</label>
							<input class="input-phoneNum" type="text" placeholder="请输入手机号码" name="mobile" id="Entmobile"/>
							<label class="enterpriseName">企业名称：</label>
							<input class="input-enterpriseName" type="text" placeholder="请输入企业名称" name="enterpriseName" id="EntenterpriseName"/>
							<br />
							
							<label class="legalPerson">法人姓名：</label>
							<input class="input-legalPerson" type="text" name="legalPerson" id="EntlegalPerson" />
							<label for="" class="isApproveLabel">企业状态：</label>
							<select class="isApprove"  name="state" id="Entstate" >
								<option value="0">全部</option>
								<option value="1">有效</option>
								<option value="2">禁用</option>
							</select>
							<label for="" class="status">认证状态：</label>
							<select class="sel-status"  name="auditState" id="EntauditState">
								<option value="0">全部</option>
								<option value="1">待审核</option>
								<option value="2">已通过</option>
								<option value="3">未通过</option>
							</select>
							<button class="table-search-button">查询</button>
						</p>
						<table class="table">
							<thead>
								<tr>
									<th>注册时间</th>
									<th>注册手机号</th>
									<th>企业名称</th>
									<th>法人姓名</th>
									<th>授信额度</th>
									<th>敞口余额</th>
									<th>剩余余额</th>
									<th>认证</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody id="enterpriseListBody">
							</tbody>
							<script type="text/template" id="enterpriseListTpl">
								{@each datas as it}
								<tr class="tr_style table-data" enterpriseId="${it.enterpriseId}">
									<td class="pl10">
										<span style="display: inline-block; width: 14px;background-color: rgb(108,160,225);color: white;">{@if it.authentication ==3 }实{@/if}</span>${(it.createDateTime).substr(0, 10)}
									</td>
									<td class="pl10">${it.mobile}</td>
									<td class="pl10">${it.enterpriseName}<span class="callback">${getValueByKey(71, it.callback)}</span></td>
									<td class="pl10">${it.legalPerson}</td>
									<td class="pl10">${formatCurrency((it.creditLine*1 / 10000).toFixed(2))}万元</td>
									<td class="pl10">${formatCurrency((it.creditAlready*1 / 10000).toFixed(2))}万元</td>
									<td class="pl10">${formatCurrency(((it.creditLine*1 - it.creditAlready*1)/ 10000).toFixed(2))}万元</td>
									<td class="pl10">
										${getValueByKey(18, it.auditState)}
									</td>
									<td class="pl10">
										<span class="table_details_link permissionLink">详情 </span>
										<span class="table_bar">| </span>
										<span class="table_delete_btn permissionLink none permissionLink" permissionId="clientManageDelete_1">删除 </span>
										{@if it.forbidden === false}
										<span class="table_bar">| </span>
										<span class="table_forbidden_btn permissionLink none permissionLink" permissionId="clientManageForbid_1">禁用 </span>
										{@/if}
										{@if it.freeze === false}
										<span class="table_bar">| </span>
										<span class="table_freeze_btn permissionLink none permissionLink" permissionId="clientManageFreeze_1">冻结 </span>
										{@/if}
										<span class="table_bar">| </span>
										<span class="table_enable_btn permissionLink none permissionLink" permissionId="clientManageReuse_1">启用 </span>
										<span class="table_bar">| </span>
										<span class="table_sync_link permissionLink">同步 </span>
									</td>
								</tr>
								{@/each}
							</script>
						</table>
						<div id="clientPagenation" class="pagerCon"></div>
					</div>
				</div>
				<div id="popdialog"></div>
			</div>
			<!-- 底部 -->
			<div id="footer" class="none footer" >
				
		    </div>
			<!--删除确认框-->
			<div class="dialog none" id="confirmDialog" style="width:300px;">
				<div class="dialogTitle"></div>
				<button class="closeDiv">×</button>
				<div class="dialogContent">
				</div>
				<div class="footerBtn">
					<div class="dialogBtn dialogHandlerBtn radius_shadow">确定</div>
				</div>
			</div>
			<div id="fullBg"></div>
			<div id="popdialog">
			</div>
		</div>
		<script type="text/javascript" src="../../../js/jquery-1.11.1.min.js"></script>
		<script src="../../../component/upload/jquery.ui.widget.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../component/upload/jquery.iframe-transport.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../component/upload/jquery.fileupload.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" src="../../../component/layer/layer.js"></script>
		<script type="text/javascript" src="../../../js/seajs/sea.js"></script>
		<script type="text/javascript" src="../../../js/seajs/seajs-text.js"></script>
		<script type="text/javascript" src="../../../js/seajs/seajs-css.js"></script>
		<script type="text/javascript" src="../../../js/platform/config.js"></script>
		<script type="text/javascript" src="../../../js/juicer-min.js"></script>
		<script src="../../../js/ajaxfileupload.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../js/My97DatePicker/WdatePicker.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../component/PCAS/PCASClass.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			seajs.use('./clientManage', function(clientManage) {
				clientManage.init();
			});
		</script>
	</body>

</html>